package com.cheng.service;

import com.cheng.spring.Autowired;
import com.cheng.spring.Component;
import com.cheng.spring.Scope;

/**
 * @author chengjunjie
 * @date 2025-10-10
 */

@Component("userService")
@Scope("singleton")
//@Scope("prototype")
public class UserService implements UserInterface {

    @Autowired
    private OrderService orderService;

    private String beanName;

    private String initXXX;

//    @Override
//    public void setBeanName(String beanName) {
//        this.beanName = beanName;
//    }
//
//    @Override
//    public void afterPropertiesSet() {
//        // 实现初始化逻辑
//    }

    @Override
    public void test() {
        System.out.println(orderService);
    }
}
